package com.asohofrucol.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the col_departament database table.
 * 
 */
@Entity
@Table(name="col_departament")
public class ColDepartament implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="cod_departament")
	private String codDepartament;

	@Column(name="nam_departament")
	private String namDepartament;

	//bi-directional many-to-one association to ColMunicipality
	@OneToMany(mappedBy="colDepartament")
	private List<ColMunicipality> colMunicipalities;

	//bi-directional many-to-one association to ColVillage
	@OneToMany(mappedBy="colDepartament")
	private List<ColVillage> colVillages;

	public ColDepartament() {
	}

	public String getCodDepartament() {
		return this.codDepartament;
	}

	public void setCodDepartament(String codDepartament) {
		this.codDepartament = codDepartament;
	}

	public String getNamDepartament() {
		return this.namDepartament;
	}

	public void setNamDepartament(String namDepartament) {
		this.namDepartament = namDepartament;
	}

	public List<ColMunicipality> getColMunicipalities() {
		return this.colMunicipalities;
	}

	public void setColMunicipalities(List<ColMunicipality> colMunicipalities) {
		this.colMunicipalities = colMunicipalities;
	}

	public List<ColVillage> getColVillages() {
		return this.colVillages;
	}

	public void setColVillages(List<ColVillage> colVillages) {
		this.colVillages = colVillages;
	}

}